home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 4 / ETO Development Tools 4.iso / Essentials / MacApp Documentation / MacApp.TECH$ Archives / 1988 / Feb 88 / Re-Compiler Version… < prev    next >
Encoding:
Text File  |  1991-03-06  |  1.6 KB  |  40 lines  |  [TEXT/GEOL]

  1. Item    4894766                         16-Feb-88        18:25
  2.  
  3. From:   BIANCHI1                        Bianchi, Curt
  4.  
  5. To:     D1002                           PEMD Ed Group, Dev, E Rosenberg
  6.  
  7. cc:     MACAPP$                         MacApp Interest List
  8.  
  9. Sub:    Response to Compiler Version…
  10.  
  11. Ernie,
  12.  
  13. I can think of a couple of possibilities that would explain different behavior
  14. between a debug and non-debug (or optimized) MacApp program.
  15.  
  16. One thing to do is to determine if you get the same behavior when you build
  17. "nondebug" as when you build "opt."  Both options strip out debugging code from
  18. your program.  Opt goes a step further and optimizes the method calls.
  19.  
  20. If your program runs find with "nondebug" but bombs with "opt" then it could be
  21. the fault of the MPW linker, which had a fairly obscure bug that caused some
  22. optimized programs to fail.  I'm not sure whether the fixed linker is generally
  23. available, but Harvey Alcabes (ALCABES1) should be able to tell you.
  24.  
  25. If your program fails with "nondebug" then you may have a problem with
  26. uninitialized data.  One difference between a debug and non-debug program is
  27. that the debug program initializes global variables, local variables, and
  28. function results to the hex pattern 7267.  Furthermore, all objects are
  29. initialized with the hex pattern 3F21.  In non-debug this initialization
  30. doesn't take place.  The upshot of this is that it causes some uninitialized
  31. data problems to appear in debug programs, while others don't crop up until the
  32. non-debug program is run.  If your program runs fine in debug, but not in
  33. non-debug then this may be the problem.
  34.  
  35. Hope this helps.
  36.  
  37. Curt Bianchi
  38. Apple Computer
  39.  
  40.